package com.zq.新特性.stream;

import com.zq.新特性.stream.PersonModel;

import java.util.List;

import static java.util.Arrays.asList;

/**
 * @Author: zhaoqi
 * @Date: 2020/4/9 9:26
 * @Version 1.0
 */

public class Data {
    private static List<PersonModel> list = null;

    static {
        PersonModel wu = new PersonModel("wu qi", 18, "男");
        PersonModel zhang = new PersonModel("zhang san", 19, "男");
        PersonModel wang = new PersonModel("wang si", 20, "女");
        PersonModel zhao = new PersonModel("zhao wu", 20, "男");
        PersonModel chen = new PersonModel("chen liu", 21, "男");
        list = asList(wu, zhang, wang, zhao, chen);
    }

    public static List<PersonModel> getData() {
        return list;
    }
}